package kr.hkit.powerjava.chapter24.submit3;

import java.util.Scanner;

public class ERP {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		
		boolean flag = true;
		
		while (flag) { //flag가 true일 동안 반복
			System.out.println("1. 학생정보 2.학과정보 3.종료");
			int res = 0;
			res = sc.nextInt();
			switch (res) {
				case 1:
					new StudentService_Service(new Student_Dao(), sc);
					break;
				case 2:
					new DepartmentService_Service(new Department_Dao(), sc);
					break;
				default:
					flag = false;
					sc.close();
			}
		}
	}
}
